const httpll = (url,type,data,header)=>{
	return new Promise((re,rq)=>{
		uni.showLoading({
			title:"加载中..."
		})
		uni.request({
			url,
			method:type,
			data,
			header,
			dataType:"json",
			success:function(res){
				re(res.data)
			},
			fail: function(res){
				rq(res.msg)
			},
			complete() {
				uni.hideLoading()
			}
		})
	})
}
export default httpll